
export default class Utils {
    public static getCenter(rect: number[]): number[] {
        return [rect[0] + Math.floor(rect[2] / 2), rect[1] + Math.floor(rect[3] / 2)];
    }

    public static dp2px(dp: number): number {
        return dp * (280 / 160);
    }

}

